Integrand size = 18, antiderivative size = 261 \[ \int x^3 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {2 b x^{7/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {7 i b x^3 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {21 b x^{5/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {105 i b x^2 \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^4}+\frac {105 b x^{3/2} \operatorname {PolyLog}\left (5,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {315 i b x \operatorname {PolyLog}\left (6,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^6}-\frac {315 b \sqrt {x} \operatorname {PolyLog}\left (7,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^7}-\frac {315 i b \operatorname {PolyLog}\left (8,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{4 d^8} \]
[Out]
Time = 0.42 (sec) , antiderivative size = 261, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {14, 3832, 3800, 2221, 2611, 6744, 2320, 6724} \[ \int x^3 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\frac {a x^4}{4}-\frac {315 i b \operatorname {PolyLog}\left (8,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{4 d^8}-\frac {315 b \sqrt {x} \operatorname {PolyLog}\left (7,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^7}+\frac {315 i b x \operatorname {PolyLog}\left (6,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^6}+\frac {105 b x^{3/2} \operatorname {PolyLog}\left (5,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {105 i b x^2 \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^4}-\frac {21 b x^{5/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {7 i b x^3 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {2 b x^{7/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {1}{4} i b x^4 \]
[In]
[Out]
Rule 14
Rule 2221
Rule 2320
Rule 2611
Rule 3800
Rule 3832
Rule 6724
Rule 6744
Rubi steps \begin{align*} \text {integral}& = \int \left (a x^3+b x^3 \tan \left (c+d \sqrt {x}\right )\right ) \, dx \\ & = \frac {a x^4}{4}+b \int x^3 \tan \left (c+d \sqrt {x}\right ) \, dx \\ & = \frac {a x^4}{4}+(2 b) \text {Subst}\left (\int x^7 \tan (c+d x) \, dx,x,\sqrt {x}\right ) \\ & = \frac {a x^4}{4}+\frac {1}{4} i b x^4-(4 i b) \text {Subst}\left (\int \frac {e^{2 i (c+d x)} x^7}{1+e^{2 i (c+d x)}} \, dx,x,\sqrt {x}\right ) \\ & = \frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {2 b x^{7/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {(14 b) \text {Subst}\left (\int x^6 \log \left (1+e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d} \\ & = \frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {2 b x^{7/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {7 i b x^3 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {(42 i b) \text {Subst}\left (\int x^5 \operatorname {PolyLog}\left (2,-e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^2} \\ & = \frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {2 b x^{7/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {7 i b x^3 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {21 b x^{5/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}+\frac {(105 b) \text {Subst}\left (\int x^4 \operatorname {PolyLog}\left (3,-e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^3} \\ & = \frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {2 b x^{7/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {7 i b x^3 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {21 b x^{5/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {105 i b x^2 \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^4}+\frac {(210 i b) \text {Subst}\left (\int x^3 \operatorname {PolyLog}\left (4,-e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^4} \\ & = \frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {2 b x^{7/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {7 i b x^3 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {21 b x^{5/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {105 i b x^2 \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^4}+\frac {105 b x^{3/2} \operatorname {PolyLog}\left (5,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}-\frac {(315 b) \text {Subst}\left (\int x^2 \operatorname {PolyLog}\left (5,-e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^5} \\ & = \frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {2 b x^{7/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {7 i b x^3 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {21 b x^{5/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {105 i b x^2 \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^4}+\frac {105 b x^{3/2} \operatorname {PolyLog}\left (5,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {315 i b x \operatorname {PolyLog}\left (6,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^6}-\frac {(315 i b) \text {Subst}\left (\int x \operatorname {PolyLog}\left (6,-e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{d^6} \\ & = \frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {2 b x^{7/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {7 i b x^3 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {21 b x^{5/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {105 i b x^2 \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^4}+\frac {105 b x^{3/2} \operatorname {PolyLog}\left (5,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {315 i b x \operatorname {PolyLog}\left (6,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^6}-\frac {315 b \sqrt {x} \operatorname {PolyLog}\left (7,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^7}+\frac {(315 b) \text {Subst}\left (\int \operatorname {PolyLog}\left (7,-e^{2 i (c+d x)}\right ) \, dx,x,\sqrt {x}\right )}{2 d^7} \\ & = \frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {2 b x^{7/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {7 i b x^3 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {21 b x^{5/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {105 i b x^2 \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^4}+\frac {105 b x^{3/2} \operatorname {PolyLog}\left (5,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {315 i b x \operatorname {PolyLog}\left (6,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^6}-\frac {315 b \sqrt {x} \operatorname {PolyLog}\left (7,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^7}-\frac {(315 i b) \text {Subst}\left (\int \frac {\operatorname {PolyLog}(7,-x)}{x} \, dx,x,e^{2 i \left (c+d \sqrt {x}\right )}\right )}{4 d^8} \\ & = \frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {2 b x^{7/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {7 i b x^3 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {21 b x^{5/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {105 i b x^2 \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^4}+\frac {105 b x^{3/2} \operatorname {PolyLog}\left (5,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {315 i b x \operatorname {PolyLog}\left (6,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^6}-\frac {315 b \sqrt {x} \operatorname {PolyLog}\left (7,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^7}-\frac {315 i b \operatorname {PolyLog}\left (8,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{4 d^8} \\ \end{align*}
Time = 0.07 (sec) , antiderivative size = 261, normalized size of antiderivative = 1.00 \[ \int x^3 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\frac {a x^4}{4}+\frac {1}{4} i b x^4-\frac {2 b x^{7/2} \log \left (1+e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d}+\frac {7 i b x^3 \operatorname {PolyLog}\left (2,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^2}-\frac {21 b x^{5/2} \operatorname {PolyLog}\left (3,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^3}-\frac {105 i b x^2 \operatorname {PolyLog}\left (4,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^4}+\frac {105 b x^{3/2} \operatorname {PolyLog}\left (5,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{d^5}+\frac {315 i b x \operatorname {PolyLog}\left (6,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^6}-\frac {315 b \sqrt {x} \operatorname {PolyLog}\left (7,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{2 d^7}-\frac {315 i b \operatorname {PolyLog}\left (8,-e^{2 i \left (c+d \sqrt {x}\right )}\right )}{4 d^8} \]
[In]
[Out]
\[\int x^{3} \left (a +b \tan \left (c +d \sqrt {x}\right )\right )d x\]
[In]
[Out]
\[ \int x^3 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\int { {\left (b \tan \left (d \sqrt {x} + c\right ) + a\right )} x^{3} \,d x } \]
[In]
[Out]
\[ \int x^3 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\int x^{3} \left (a + b \tan {\left (c + d \sqrt {x} \right )}\right )\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 937 vs. \(2 (198) = 396\).
Time = 0.46 (sec) , antiderivative size = 937, normalized size of antiderivative = 3.59 \[ \int x^3 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int x^3 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\int { {\left (b \tan \left (d \sqrt {x} + c\right ) + a\right )} x^{3} \,d x } \]
[In]
[Out]
Timed out. \[ \int x^3 \left (a+b \tan \left (c+d \sqrt {x}\right )\right ) \, dx=\int x^3\,\left (a+b\,\mathrm {tan}\left (c+d\,\sqrt {x}\right )\right ) \,d x \]
[In]
[Out]